package com.starlink.model.dtomapper;

import com.starlink.model.domain.UserVipSetDO;
import com.starlink.model.request.UserVipSetRequest;
import com.starlink.model.vo.UserVipSetVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface UserVipSetDtoMapper {

    UserVipSetDtoMapper INSTANCE = Mappers.getMapper(UserVipSetDtoMapper.class);

    /**
    * DO to VO
    * @param userVipSetDO
    * @return
    */
    UserVipSetVO do2VO(UserVipSetDO userVipSetDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    UserVipSetDO request2DO(UserVipSetRequest request);
}
